<template>
	<view class="">
		<!-- 模糊背景 -->
		<view class="imgbg">
			<image :src="present.titlePic" mode="aspectFill" lazy-load></image>
		</view>
		<view class="detailBox">
			<view class="detail-head">
				<view>
					<image :src="present.titlePic" mode="widthFix" lazy-load></image>
				</view>
				<view>#{{present.title}}#</view>
			</view>
			<view>
				<view>
					动态 {{present.total}}
				</view>
				<view>今日{{present.nowtatal}}</view>
			</view>
			<view>
				<view>{{present.desc}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:['present'],
		data(){
			return{
				// present:this.present
			}
		}
	}
</script>

<style scoped lang="scss">
	.imgbg{
		width: 100%;
		height: 300upx;
		position: relative;
		overflow: hidden;
		image{
			width: 100%;
			position: absolute;
			top: 0;
			filter: blur(10px);
		}
	}
	.detailBox{
		padding: 0 20upx;
		&>view:nth-of-type(2){
			color: #D8D8D8;
			padding: 30upx 0 20upx;
			display: flex;
			&>view{
			font-size: 20upx;
			}
			&>view:first-child{
				margin-right: 50upx;
			}
		}
		&>view:nth-of-type(3){
			color: #C1C1C1;
			&>view{
				font-size: 20upx;
			}
		}
	}
	.detail-head{
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 60upx;
		line-height: 60upx;
		position: relative;
		&>view:nth-of-type(1){
			position: absolute;
			top: -80upx;
			left: 0upx;
			image{
				width: 150upx;
				height: 150upx;
				border-radius: 5px;
				
			}
		}
		&>view:nth-of-type(2){
			flex: 1;
			margin-left: 170upx;
		}
	}
</style>
